{% for host in groups['hadoop'] %}
{{ hostvars[host]['ansible_default_ipv4']['address'] }}
{% endfor %}